package com.runshu.newsmartark.dbutil;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;
import androidx.room.TypeConverters;

import com.runshu.newsmartark.util.StringUtils;

import java.sql.Date;

import jxl.write.DateTime;


/**
 * Demo class
 *
 * @author yu
 * @date 12/11/20
 * @decs：全部商品的数据
 */
// entity声明定义，并且指定了映射数据表明
@Entity(tableName = "ProAllEntity")
public class ProAllEntity {
    private String hid;
    private String inventoryId;
    private String itemId;
    private String hwName;
    @NonNull
    @PrimaryKey
    private String serialNo;
    private String batchNo;
    private String validPeriodDate;
    private String productDate;
    private String period;
    private String productCode;
    private String productName;
    private String productShortName;
    private String regularModel;
    private String model;
    private String storageCondition;
    private String productProperty;
    private String barCodeRule;
    private String registrationNo;
    private String regCertifyApplyDate;
    private String regCertifyEndDate;
    private String pinyin;
    private String categoryLevel1Name;
    private String categoryLevel2Name;
    private String categoryLevel3Name;
    private String categoryLevel4Name;
    private String unitName;
    private String vendorName;
    private String productVendor;
    private String unitId;
    private String categoryLevel1;
    private String categoryLevel2;
    private String categoryLevel3;
    private String parentId;
    private String updateTime;
    private String operateUser;
    private int proType;

    public int getProType() {
        return proType;
    }

    public void setProType(int proType) {
        this.proType = proType;
    }

    public ProAllEntity() {
    }

    @Ignore
    public ProAllEntity(String serialNo) {
        this.proType=0 ;
        this.hid = "";
        this.inventoryId = "";
        this.itemId = "";
        this.hwName = "-";
        this.serialNo = serialNo;
        this.batchNo = "";
        this.validPeriodDate = "-";
        this.productDate = "-";
        this.period = "-";
        this.productCode = "Z";
        this.productName = "未知";
        this.productShortName = "-";
        this.regularModel = "-";
        this.model = "-";
        this.storageCondition = "-";
        this.productProperty = "-";
        this.barCodeRule = "-";
        this.registrationNo = "-";
        this.regCertifyApplyDate = "-";
        this.regCertifyEndDate = "-";
        this.pinyin = "-";
        this.categoryLevel1Name = "-";
        this.categoryLevel2Name = "-";
        this.categoryLevel3Name = "-";
        this.categoryLevel4Name = "-";
        this.unitName = "-";
        this.vendorName = "-";
        this.productVendor = "-";
        this.unitId = "-";
        this.categoryLevel1 = "-";
        this.categoryLevel2 = "-";
        this.categoryLevel3 = "-";
        this.parentId = "";
        this.updateTime = "";
        this.operateUser = "-";
    }

    public String getOperateUser() {
        return operateUser == null ? "" : operateUser;
    }


    public void setOperateUser(String operateUser) {
        this.operateUser = operateUser == null ? "" : operateUser;
    }

    public String getUpdateTime() {
        return updateTime == null ? "" : updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime == null ? "" : updateTime;
    }

    public String getHid() {
        return hid == null ? "" : hid;
    }

    public void setHid(String hid) {
        this.hid = hid == null ? "" : hid;
    }

    public String getInventoryId() {
        return inventoryId == null ? "" : inventoryId;
    }

    public void setInventoryId(String inventoryId) {
        this.inventoryId = inventoryId == null ? "" : inventoryId;
    }

    public String getItemId() {
        return itemId == null ? "" : itemId;
    }

    public void setItemId(String itemId) {
        this.itemId = itemId == null ? "" : itemId;
    }

    public String getHwName() {
        return hwName == null ? "" : hwName;
    }

    public void setHwName(String hwName) {
        this.hwName = hwName == null ? "" : hwName;
    }

    public String getSerialNo() {
        return serialNo == null ? "" : serialNo;
    }

    public void setSerialNo(String serialNo) {
        this.serialNo = serialNo == null ? "" : serialNo;
    }

    public String getBatchNo() {
        return batchNo == null ? "" : batchNo;
    }

    public void setBatchNo(String batchNo) {
        this.batchNo = batchNo == null ? "" : batchNo;
    }

    public String getValidPeriodDate() {
        return validPeriodDate == null ? "" : validPeriodDate;
    }

    public void setValidPeriodDate(String validPeriodDate) {
        this.validPeriodDate = validPeriodDate == null ? "" : validPeriodDate;
    }

    public String getProductDate() {
        return productDate == null ? "" : productDate;
    }

    public void setProductDate(String productDate) {
        this.productDate = productDate == null ? "" : productDate;
    }

    public String getPeriod() {
        return period == null ? "" : period;
    }

    public void setPeriod(String period) {
        this.period = period == null ? "" : period;
    }

    public String getProductCode() {
        return productCode == null ? "" : productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode == null ? "" : productCode;
    }

    public String getProductName() {
        return productName == null ? "" : productName;
    }

    public void setProductName(String productName) {
        this.productName = productName == null ? "" : productName;
    }

    public String getProductShortName() {
        return productShortName == null ? "" : productShortName;
    }

    public void setProductShortName(String productShortName) {
        this.productShortName = productShortName == null ? "" : productShortName;
    }

    public String getRegularModel() {
        return regularModel == null ? "" : regularModel;
    }

    public void setRegularModel(String regularModel) {
        this.regularModel = regularModel == null ? "" : regularModel;
    }

    public String getModel() {
        return model == null ? "" : model;
    }

    public void setModel(String model) {
        this.model = model == null ? "" : model;
    }

    public String getStorageCondition() {
        return storageCondition == null ? "" : storageCondition;
    }

    public void setStorageCondition(String storageCondition) {
        this.storageCondition = storageCondition == null ? "" : storageCondition;
    }

    public String getProductProperty() {
        return productProperty == null ? "" : productProperty;
    }

    public void setProductProperty(String productProperty) {
        this.productProperty = productProperty == null ? "" : productProperty;
    }

    public String getBarCodeRule() {
        return barCodeRule == null ? "" : barCodeRule;
    }

    public void setBarCodeRule(String barCodeRule) {
        this.barCodeRule = barCodeRule == null ? "" : barCodeRule;
    }

    public String getRegistrationNo() {
        return registrationNo == null ? "" : registrationNo;
    }

    public void setRegistrationNo(String registrationNo) {
        this.registrationNo = registrationNo == null ? "" : registrationNo;
    }


    public String getRegCertifyApplyDate() {
        return regCertifyApplyDate == null ? "" : regCertifyApplyDate;
    }

    public void setRegCertifyApplyDate(String regCertifyApplyDate) {
        this.regCertifyApplyDate = regCertifyApplyDate == null ? "" : regCertifyApplyDate;
    }

    public String getRegCertifyEndDate() {
        return regCertifyEndDate == null ? "" : regCertifyEndDate;
    }

    public void setRegCertifyEndDate(String regCertifyEndDate) {
        this.regCertifyEndDate = regCertifyEndDate == null ? "" : regCertifyEndDate;
    }

    public String getPinyin() {
        return pinyin == null ? "" : pinyin;
    }

    public void setPinyin(String pinyin) {
        this.pinyin = pinyin == null ? "" : pinyin;
    }

    public String getCategoryLevel1Name() {
        return categoryLevel1Name == null ? "" : categoryLevel1Name;
    }

    public void setCategoryLevel1Name(String categoryLevel1Name) {
        this.categoryLevel1Name = categoryLevel1Name == null ? "" : categoryLevel1Name;
    }

    public String getCategoryLevel2Name() {
        return categoryLevel2Name == null ? "" : categoryLevel2Name;
    }

    public void setCategoryLevel2Name(String categoryLevel2Name) {
        this.categoryLevel2Name = categoryLevel2Name == null ? "" : categoryLevel2Name;
    }

    public String getCategoryLevel3Name() {
        return categoryLevel3Name == null ? "" : categoryLevel3Name;
    }

    public void setCategoryLevel3Name(String categoryLevel3Name) {
        this.categoryLevel3Name = categoryLevel3Name == null ? "" : categoryLevel3Name;
    }

    public String getCategoryLevel4Name() {
        return categoryLevel4Name == null ? "" : categoryLevel4Name;
    }

    public void setCategoryLevel4Name(String categoryLevel4Name) {
        this.categoryLevel4Name = categoryLevel4Name == null ? "" : categoryLevel4Name;
    }

    public String getUnitName() {
        return unitName == null ? "" : unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName == null ? "" : unitName;
    }

    public String getVendorName() {
        return vendorName == null ? "" : vendorName;
    }

    public void setVendorName(String vendorName) {
        this.vendorName = vendorName == null ? "" : vendorName;
    }

    public String getProductVendor() {
        return productVendor == null ? "" : productVendor;
    }

    public void setProductVendor(String productVendor) {
        this.productVendor = productVendor == null ? "" : productVendor;
    }

    public String getUnitId() {
        return unitId == null ? "" : unitId;
    }

    public void setUnitId(String unitId) {
        this.unitId = unitId == null ? "" : unitId;
    }

    public String getCategoryLevel1() {
        return categoryLevel1 == null ? "" : categoryLevel1;
    }

    public void setCategoryLevel1(String categoryLevel1) {
        this.categoryLevel1 = categoryLevel1 == null ? "" : categoryLevel1;
    }

    public String getCategoryLevel2() {
        return categoryLevel2 == null ? "" : categoryLevel2;
    }

    public void setCategoryLevel2(String categoryLevel2) {
        this.categoryLevel2 = categoryLevel2 == null ? "" : categoryLevel2;
    }

    public String getCategoryLevel3() {
        return categoryLevel3 == null ? "" : categoryLevel3;
    }

    public void setCategoryLevel3(String categoryLevel3) {
        this.categoryLevel3 = categoryLevel3 == null ? "" : categoryLevel3;
    }

    public String getParentId() {
        return parentId == null ? "" : parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId == null ? "" : parentId;
    }
}